package cn.edu.zut.request;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**
 * @author Davey chan
 */
@WebServlet(urlPatterns = "/demo1")
public class ServletDemo1 implements Servlet {
    private ServletConfig config;
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("hello world");
    }
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        this.config=config;
        System.out.println("init...");
    }
    @Override
    public void destroy() {
        System.out.println("destory()");
    }
    @Override
    public ServletConfig getServletConfig() {
        return null;
    }



    @Override
    public String getServletInfo() {
        return null;
    }


}
